/* 
 * File:   CSurface.h
 * Author: mrossetti
 *
 * Created on 23 giugno 2011, 15.47
 */

#ifndef CSURFACE_H
#define	CSURFACE_H

#include "SDL/SDL.h"
#include "SDL/SDL_ttf.h"
#include <string>

class CSurface {
    public:
        CSurface();
    public:
        static SDL_Surface* OnLoad(char* File);
        static SDL_Surface* OnFontLoad(char* File, char* Msg);
        static bool OnDraw(SDL_Surface* Surf_Dest, SDL_Surface* Surf_Src, int X, int Y);
        static bool OnDraw(SDL_Surface* Surf_Dest, SDL_Surface* Surf_Src, int X, int Y, int X2, int Y2, int W, int H);
        static bool Transparent(SDL_Surface* Surf_Dest, int R, int G, int B);
        static bool LoadFontSurface( SDL_Surface *sDest, TTF_Font *fnt, std::string str, int X, int Y, SDL_Color clr );
};

#endif	/* CSURFACE_H */

